**EFA 

factor  pop1 pop2 pop3 pop4 nos1 nos2 nos3 nos4 [aweight = total_weight], pcf
rotate, promax(3) oblique kaiser

**CFA

**don't run ** variable for dropping missings

** gen misspop = 1 if pop1 == . | pop2 ==. | pop3 ==. | pop4 ==. | nos1 ==. | nos2 ==. | nos3 ==. | nos4 ==.


drop if misspop == 1

sem (nos -> nos1, ) (nos -> nos2, ) (nos -> nos3, ) (nos -> nos4, ) (pop -> pop1, ) (pop -> pop2, ) (pop -> pop3, ) (pop -> pop4, ) [iweight = total_weight], covstruct(_lexogenous, diagonal) latent(nos pop ) cov( pop*nos) nocapslatent
estat gof, stats(all)